<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { isPhone } from "./config";
import { debounce } from "./utils/index";
export default {
  mounted() {
    // window.addEventListener(
    //   "resize",
    //   debounce(function () {
    //     window.location.href = isPhone()
    //       ? window.location.href.replace("/pc-", "/m-")
    //       : window.location.href.replace("/m-", "/pc-");
    //   }, 300)
    // );
  },
};
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
